package IO;

import java.io.File;
import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        文件删除
        File f = new File("./test.txt");
//        f.delete();
//        进程结束再删除
        f.deleteOnExit();
//        把程序阻塞了
        scanner.next();
        System.out.println(f.exists());
    }
}
